/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 说明： 会员销售汇总表
 * 
 * @Author：李智深
 * @Date：2012-03-20
 */
@Entity
@Table(name = "ruipengkj_view_menber_sales_summary")
public class ViewMenberSalesSummary implements Serializable {
	private static final long serialVersionUID = 1L;

	private String userID;// 会员编号
	private String userName;// 会员名称
	private int BuyCount;// 总消费次数
	private int buyTotalNumber;// 购买商品总数
	private Double totalBuyMoney;// 消费总金额
	private Double totalCost;// 销售总成本
	private Double totalProfit;// 销售毛利润
	private Date lastDate;// 最后登录

	@Id
	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public int getBuyCount() {
		return BuyCount;
	}

	public void setBuyCount(int buyCount) {
		BuyCount = buyCount;
	}

	public int getBuyTotalNumber() {
		return buyTotalNumber;
	}

	public void setBuyTotalNumber(int buyTotalNumber) {
		this.buyTotalNumber = buyTotalNumber;
	}

	public Double getTotalBuyMoney() {
		return totalBuyMoney;
	}

	public void setTotalBuyMoney(Double totalBuyMoney) {
		if(totalBuyMoney==null){
			this.totalBuyMoney=0.00;
		}else{
			this.totalBuyMoney = totalBuyMoney;
		}
	}

	public Double getTotalCost() {
		return totalCost;
	}

	public void setTotalCost(Double totalCost) {
		if(totalCost==null){
			this.totalCost=0.00;
		}else{
			this.totalCost = totalCost;
		}
	}

	public Double getTotalProfit() {
		return totalProfit;
	}

	public void setTotalProfit(Double totalProfit) {
		if(totalProfit==null){
			this.totalProfit=0.00;
		}else{
			this.totalProfit = totalProfit;
		}
	}

	public Date getLastDate() {
		return lastDate;
	}

	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}

}
